import request from '@/utils/request'

// 查询订单登记表数据
export function getReserveRegisterList(query) {
  return request({
    url: '/hotel/order/register/getReserveRegisterList',
    method: 'get',
    params: query
  })
}

// 根据登记表ID获取登记表数据信息
export function getReserveRegisterById(query) {
  return request({
    url: '/hotel/order/register/getReserveRegisterById',
    method: 'get',
    params: query
  })
}

// 查询登记表订单的支付信息
export function getOrderRegisterPayment(query) {
  return request({
    url: '/hotel/order/register/getOrderRegisterPayment',
    method: 'get',
    params: query
  })
}

// 查询登记表订单的返款信息
export function getOrderRegisterRefund(query) {
  return request({
    url: '/hotel/order/register/getOrderRegisterRefund',
    method: 'get',
    params: query
  })
}

// 查询登记表订单的返款信息
export function getHotelDfkPrice(query) {
  return request({
    url: '/hotel/order/register/getHotelDfkPrice',
    method: 'get',
    params: query
  })
}

// 添加支付记录
export function postPaymentInfo(data) {
  return request({
    url: '/hotel/order/register/postPaymentInfo',
    method: 'post',
    data: data
  })
}

// 添加返款记录
export function postRefundInfo(data) {
  return request({
    url: '/hotel/order/register/postRefundInfo',
    method: 'post',
    data: data
  })
}

// 登记表编辑
export function postEditPaymentInfo(data) {
  return request({
    url: '/hotel/order/register/postEditPaymentInfo',
    method: 'post',
    data: data
  })
}

// 根据批次ID获取这个批次所包含的订单及支付信息
export function getRegisterAndPaymentByBatchId(query) {
  return request({
    url: '/hotel/order/register/getRegisterAndPaymentByBatchId',
    method: 'get',
    params: query
  })
}

// 修改宝尚采购价
export function postBaoShangEditCgj(data) {
  return request({
    url: '/hotel/order/register/postBaoShangEditCgj',
    method: 'post',
    data: data
  })
}

// 宝尚订单录入
export function postAddRegister(data) {
  return request({
    url: '/hotel/order/register/postAddRegister',
    method: 'post',
    data: data
  })
}

// 支付校验
export function postPaymentValid(data) {
  return request({
    url: '/hotel/order/register/postPaymentValid',
    method: 'post',
    data: data
  })
}

// 复制订单
export function postCopyRegister(data) {
  return request({
    url: '/hotel/order/register/postCopyRegister',
    method: 'post',
    data: data
  })
}

// 删除订单
export function postDeleteRegister(data) {
  return request({
    url: '/hotel/order/register/postDeleteRegister',
    method: 'post',
    data: data
  })
}

// 清空订单
export function postEmptyRegister(data) {
  return request({
    url: '/hotel/order/register/postEmptyRegister',
    method: 'post',
    data: data
  })
}

// 悦游手动导入登记表
export function postImportRegister(data) {
  return request({
    url: '/hotel/order/register/postImportRegister',
    method: 'post',
    data: data
  })
}